/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Interface;

import Server.DTO.SavingType_DTO;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;

/**
 *
 * @author 10520_000
 */
public interface IRemoteSavingType extends Remote{
    public int Insert(SavingType_DTO info) throws RemoteException;
    
    public int Update(SavingType_DTO info) throws RemoteException;
    
    public int Delete(SavingType_DTO info) throws RemoteException;
    
    public ArrayList FindAll() throws RemoteException;
    
    public SavingType_DTO FindByTypeID(String TypeID) throws RemoteException;
    
    public String GetSavingType(String str_TypeName, int str_Term) throws RemoteException;
    
    public ArrayList GetSavingTypes(String str_TypeName) throws RemoteException;
    
    public ArrayList GetNames() throws RemoteException;
    
    public ArrayList GetTerms() throws RemoteException;
    
    //kiểm tra mã loại tiết kiệm có thuộc table SAVINGBOOK không
    public boolean Check_TypeID_Exist(String str_TypeID) throws RemoteException;
    
}
